package com.zt.sysman;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import com.zt.base.BaseController;

/**
 * 
 */

/**
 * LoginController 系统登录控制
 * 
 * @author zhangzhw
 * 
 */
@Controller
@RequestMapping("/sysman/login")
public class LoginController extends BaseController {

	/**
	 * login 登录
	 * 
	 * @param userName
	 * @param userPass
	 * @return 登录结果
	 */
	@RequestMapping(value = "/login")
	public ModelAndView login(@RequestParam String userName,
			@RequestParam String userPass) {
		Map<String, Object> map = new HashMap<String, Object>();

		map.put("name", "zhang");
		map.put("date", new Date());
		map.put("success", true);

		return new ModelAndView("/sysman/login/login", "map", map);
	}

}
